import { createRouter, createWebHashHistory } from 'vue-router';
import HelloWorld from "../components/HelloWorld.vue";
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/index',
    },
    {
        path: "/helloWorld",
        name: "HelloWorld",
        component: HelloWorld,
    },
    {
        path: "/index",
        name: "Index",
        component: () => import(/* webpackChunkName: "dashboard" */ '../views/Index.vue'),
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;